home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / GeoTypes.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  945 b   |  41 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993-1994 by Apple Computer, Inc., all rights reserved.
  2.  
  3. //# For AltPoint problem
  4.  
  5. #ifndef _GEOTYPES_
  6. #define _GEOTYPES_
  7.  
  8. #if defined(__SOMIDL__) && defined(EMIT_GEOTYPES)
  9. #pragma somemittypes on
  10. #endif
  11.  
  12. typedef long ODCoordinate;    // Graphics coordinates; 16.16 fixed by default
  13.  
  14.  
  15. struct ODPoint {                  
  16.   ODCoordinate x, y;                // Identical to "gxPoint" in QD GX.
  17. };
  18.  
  19. // ODRect struct. We conditionalize this with a symbol, like the header files, to allow
  20. // alternate definitions to be included first; they can then #define _RECT_ to keep this one
  21. // from being defined here.
  22.  
  23. // Identical to "gxRect" in QD GX.
  24. struct ODRect {
  25.   ODCoordinate left;
  26.   ODCoordinate top;
  27.   ODCoordinate right;
  28.   ODCoordinate bottom;
  29. };
  30.  
  31. #if defined(__SOMIDL__) && defined(EMIT_GEOTYPES)
  32. #pragma somemittypes off
  33. #endif
  34.  
  35. module OpenDoc_GeoTypes 
  36. {
  37.     const string OpenDoc_GeoTypes_Version = "1.0.";
  38. };
  39.  
  40. #endif //# _GEOTYPES_
  41.